Transfer learning and domain adaptation using distributable data models

ABSTRACT

A system for transfer learning and domain adaptation using distributable data models is provided, comprising a network-connected distributable model configured to serve instances of a plurality of distributable models; and a directed computation graph module configured to receive at least an instance of at least one of the distributable models from the network-connected computing system, create a second dataset from machine learning performed by a transfer engine, train the instance of the distributable model with the second dataset, and generate an update report based at least in part by updates to the instance of the distributable model.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation-in-part of U.S. patent application Ser. No. 15/790,457, titled “IMPROVING A DISTRIBUTABLE MODEL WITH BIASES CONTAINED WITHIN DISTRIBUTED DATA”, filed on Oct. 23, 2017, which claims priority to U.S. provisional patent application 62/568,298 titled “DISTRIBUTABLE MODEL WITH BIASES CONTAINED IN DISTRIBUTED DATA”, filed on Oct. 4, 2017, and is also a continuation-in-part of U.S. patent application Ser. No. 15/790,327 titled “IMPROVING A DISTRIBUTABLE MODEL WITH DISTRIBUTED DATA”, filed on Oct. 23, 2017, which claims priority to U.S. provisional patent application 62/568,291 titled “DISTRIBUTABLE MODEL WITH DISTRIBUTED DATA”, filed on Oct. 4, 2017, and is also a continuation-in-part of U.S. patent application Ser. No. 15/616,427 titled “RAPID PREDICTIVE ANALYSIS OF VERY LARGE DATA SETS USING AN ACTOR-DRIVEN DISTRIBUTED COMPUTATIONAL GRAPH”, filed on Jun. 7, 2017, and is also a continuation-in-part of U.S. patent application Ser. No. 15/141,752, titled “SYSTEM FOR FULLY INTEGRATED CAPTURE, AND ANALYSIS OF BUSINESS INFORMATION RESULTING IN PREDICTIVE DECISION MAKING AND SIMULATION”, filed on Apr. 28, 2016, which is a continuation-in-part of U.S. patent application Ser. No. 14/925,974, titled “RAPID PREDICTIVE ANALYSIS OF VERY LARGE DATA SETS USING THE DISTRIBUTED COMPUTATIONAL GRAPH” and filed on Oct. 28, 2015, and is also a continuation-in-part of U.S. patent application Ser. No. 14/986,536, titled “DISTRIBUTED SYSTEM FOR LARGE VOLUME DEEP WEB DATA EXTRACTION”, and filed on Dec. 31, 2015, and is also a continuation-in-part of U.S. patent application Ser. No. 15/091,563, titled “SYSTEM FOR CAPTURE, ANALYSIS AND STORAGE OF TIME SERIES DATA FROM SENSORS WITH HETEROGENEOUS REPORT INTERVAL PROFILES”, and filed on Apr. 5, 2016, the entire specification of each of which is incorporated herein by reference in its entirety.

BACKGROUND OF THE INVENTION

Field of the Invention

The disclosure relates to the field of machine learning, more particularly to model improvement using biases contained in data distributed across multiple devices.

Discussion of the State of the Art

In traditional machine learning, data is generally gathered and processed at a central location. The gathered data may then be used to train models. However, gatherable data, through means such as web scraping, or news aggregation, may be relatively narrow in scope compared to what is stored on devices, for instance a person's mobile device or crime data from a local police station. This data may seldom leave the devices it is stored on due to the possibility of it containing sensitive data, and also the bandwidth required to transfer the data may be extensive.

Generator models trained on data sets (whether anonymized or not) may be restricted for transfer (for example, due to GDPR). Existing tools such as SNORKEL™ can provide substantial mechanisms to accelerate generating realistic and labelled training data from small seeds. The same concept can support transferring valuable models without moving the restricted information itself. This also applies to other sharing of models, data sets, visualizations, pipelines, and other data, such as for multi-tenant deployments, inter-organizational sharing or hybrid cloud-edge use cases.

What is needed is a system for using transfer learning to accommodate data models trained in particular environments or applications that may not have identical feature space or distributions within target data or applications.

SUMMARY OF THE INVENTION

Accordingly, the inventor has conceived a system and methods for using transfer learning to accommodate data models trained in particular environments or applications that may not have identical feature space or distributions within target data or applications.

In a preferred embodiment, a model source may serve instances of a variety of distributable models: a generalized model in which data used to train it has had biases weighted and corrected, and also a bias-specific model in which biases are utilized. The instances are served to distributed devices, where they may be trained by the devices. The devices each generate an update report, which is transferred back to the model source, where the model source may use the report to improve the main models.

In one aspect of the invention, a system for improving a distributable model with biases contained in distributed data is provided, comprising a network-connected distributable model source comprising a memory, a processor, and a plurality of programming instructions stored in the memory thereof and operable on the processor thereof, wherein the programmable instructions, when operating on the processor, cause the processor to serve instances of a plurality of distributable models; and a directed computation graph module comprising a memory, a processor, and a plurality of programming instructions stored in the memory thereof and operable on the processor thereof, wherein the programmable instructions, when operating on the processor, cause the processor to receive at least an instance of at least one of the distributable models from the network-connected computing system, create a cleansed dataset from data stored in the memory based at least in part by biases contained within the data stored in memory, train the instance of the distributable model with the cleansed dataset, and generate an update report based at least in part by updates to the instance of the distributable model.

In another embodiment of the invention, at least a portion the cleansed dataset is data that has had sensitive information removed. In another embodiment of the invention, at least a portion of the update report is used by the network-connected distributable model source to improve the distributable model. In another embodiment of the invention, at least a portion of the biases contained within the data stored in memory is based on geography. In another embodiment of the invention, at least a portion of the biases contained within the data stored in memory is based on age. In another embodiment of the invention, at least a portion of the biases contained within the data stored in memory is based on gender.

In another aspect of the invention, a method for improving a distributable model with biases contained in distributed data is provided, comprising the steps of: (a) serving instances of a plurality of distributable models with a network-connected distributable model source; (b) receiving at least an instance of at least one of the distributable models from the network-connected computing system with a directed computation graph module; (c) creating a cleansed dataset from data stored in the memory based at least in part by biases contained within the data stored in memory with the directed computation graph module; (d) training the instance of the distributable model with the cleansed dataset with the directed computation graph module; and (e) generating an update report based at least in part by updates to the instance of the distributable model with the directed computation graph module.

BRIEF DESCRIPTION OF THE DRAWING FIGURES

The accompanying drawings illustrate several aspects and, together with the description, serve to explain the principles of the invention according to the aspects. It will be appreciated by one skilled in the art that the particular arrangements illustrated in the drawings are merely exemplary, and are not to be considered as limiting of the scope of the invention or the claims herein in any way.

FIG. 1 is a diagram of an exemplary architecture of a business operating system according to an embodiment of the invention.

FIG. 2 is a block diagram of an exemplary system for using transfer learning to accommodate data models trained in particular environments or applications that may not have identical feature space or distributions within target data or applications according to various embodiments of the invention.

FIG. 3 is a block diagram of an exemplary system that may utilize biases contained within data distributed amongst various sectors to improve a sector-level distributable model according to various embodiments of the invention.

FIG. 4 is a block diagram of an exemplary hierarchy in which each level may have a its own distributable model according to various embodiments of the invention.

FIG. 5 is a flowchart illustrating a method for cleaning and sanitizing data stored on an electronic device before training an instance of a distributable model according to various embodiments of the invention.

FIG. 6 is a flowchart illustrating a method for improving a distributable model on a device external from the source of the model according to various embodiments of the invention.

FIG. 7 is a flowchart illustrating a method for improving a general-use and bias-specific distributable model with biases obtained from data on a distributed device according to various embodiments of the invention.

FIG. 8 is a flowchart illustrating a method for using transfer learning to accommodate data models trained in particular environments or applications that may not have identical feature space or distributions within target data or applications.

FIG. 9 is a flowchart illustrating a method for using a pre-trained model in transfer learning, to provide a starting point for additional model training.

FIG. 10 is a block diagram illustrating an exemplary hardware architecture of a computing device used in various embodiments of the invention.

FIG. 11 is a block diagram illustrating an exemplary logical architecture for a client device, according to various embodiments of the invention.

FIG. 12 is a block diagram illustrating an exemplary architectural arrangement of clients, servers, and external services, according to various embodiments of the invention.

FIG. 13 is another block diagram illustrating an exemplary hardware architecture of a computing device used in various embodiments of the invention.

DETAILED DESCRIPTION

The inventor has conceived, and reduced to practice, a system and method for improving a regionalized distributable model with biases contained in distributed data.

One or more different aspects may be described in the present application. Further, for one or more of the aspects described herein, numerous alternative arrangements may be described; it should be appreciated that these are presented for illustrative purposes only and are not limiting of the aspects contained herein or the claims presented herein in any way. One or more of the arrangements may be widely applicable to numerous aspects, as may be readily apparent from the disclosure. In general, arrangements are described in sufficient detail to enable those skilled in the art to practice one or more of the aspects, and it should be appreciated that other arrangements may be utilized and that structural, logical, software, electrical and other changes may be made without departing from the scope of the particular aspects. Particular features of one or more of the aspects described herein may be described with reference to one or more particular aspects or figures that form a part of the present disclosure, and in which are shown, by way of illustration, specific arrangements of one or more of the aspects. It should be appreciated, however, that such features are not limited to usage in the one or more particular aspects or figures with reference to which they are described. The present disclosure is neither a literal description of all arrangements of one or more of the aspects nor a listing of features of one or more of the aspects that must be present in all arrangements.

Headings of sections provided in this patent application and the title of this patent application are for convenience only, and are not to be taken as limiting the disclosure in any way.

Devices that are in communication with each other need not be in continuous communication with each other, unless expressly specified otherwise. In addition, devices that are in communication with each other may communicate directly or indirectly through one or more communication means or intermediaries, logical or physical.

A description of an aspect with several components in communication with each other does not imply that all such components are required. To the contrary, a variety of optional components may be described to illustrate a wide variety of possible aspects and in order to more fully illustrate one or more aspects. Similarly, although process steps, method steps, algorithms or the like may be described in a sequential order, such processes, methods and algorithms may generally be configured to work in alternate orders, unless specifically stated to the contrary. In other words, any sequence or order of steps that may be described in this patent application does not, in and of itself, indicate a requirement that the steps be performed in that order. The steps of described processes may be performed in any order practical. Further, some steps may be performed simultaneously despite being described or implied as occurring non-simultaneously (e.g., because one step is described after the other step). Moreover, the illustration of a process by its depiction in a drawing does not imply that the illustrated process is exclusive of other variations and modifications thereto, does not imply that the illustrated process or any of its steps are necessary to one or more of the aspects, and does not imply that the illustrated process is preferred. Also, steps are generally described once per aspect, but this does not mean they must occur once, or that they may only occur once each time a process, method, or algorithm is carried out or executed. Some steps may be omitted in some aspects or some occurrences, or some steps may be executed more than once in a given aspect or occurrence.

When a single device or article is described herein, it will be readily apparent that more than one device or article may be used in place of a single device or article. Similarly, where more than one device or article is described herein, it will be readily apparent that a single device or article may be used in place of the more than one device or article.

The functionality or the features of a device may be alternatively embodied by one or more other devices that are not explicitly described as having such functionality or features. Thus, other aspects need not include the device itself.

Techniques and mechanisms described or referenced herein will sometimes be described in singular form for clarity. However, it should be appreciated that particular aspects may include multiple iterations of a technique or multiple instantiations of a mechanism unless noted otherwise. Process descriptions or blocks in figures should be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps in the process. Alternate implementations are included within the scope of various aspects in which, for example, functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those having ordinary skill in the art.

Conceptual Architecture

FIG. 1 is a diagram of an exemplary architecture of a business operating system 100 according to an embodiment of the invention. Client access to system 105 for specific data entry, system control and for interaction with system output such as automated predictive decision making and planning and alternate pathway simulations, occurs through the system's distributed, extensible high bandwidth cloud interface 110 which uses a versatile, robust web application driven interface for both input and display of client-facing information and a data store 112 such as, but not limited to MONGODB™, COUCHDB™, CASSANDRA™ or REDIS™ depending on the embodiment. Much of the business data analyzed by the system both from sources within the confines of the client business, and from cloud based sources 107, public or proprietary such as, but not limited to: subscribed business field specific data services, external remote sensors, subscribed satellite image and data feeds and web sites of interest to business operations both general and field specific, also enter the system through the cloud interface 110, data being passed to the connector module 135 which may possess the API routines 135 a needed to accept and convert the external data and then pass the normalized information to other analysis and transformation components of the system, the directed computational graph module 155, high volume web crawler module 115, multidimensional time series database 120 and a graph stack service 145. Directed computational graph module 155 retrieves one or more streams of data from a plurality of sources, which includes, but is not limited to, a plurality of physical sensors, network service providers, web based questionnaires and surveys, monitoring of electronic infrastructure, crowd sourcing campaigns, and human input device information. Within directed computational graph module 155, data may be split into two identical streams in a specialized pre-programmed data pipeline 155 a, wherein one sub-stream may be sent for batch processing and storage while the other sub-stream may be reformatted for transformation pipeline analysis. The data may be then transferred to a general transformer service module 160 for linear data transformation as part of analysis or the decomposable transformer service module 150 for branching or iterative transformations that are part of analysis. Directed computational graph module 155 represents all data as directed graphs where the transformations are nodes and the result messages between transformations edges of the graph. High-volume web crawling module 115 may use multiple server hosted preprogrammed web spiders which, while autonomously configured, may be deployed within a web scraping framework 115 a of which SCRAPY™ is an example, to identify and retrieve data of interest from web based sources that are not well tagged by conventional web crawling technology. Multiple dimension time series data store module 120 may receive streaming data from a large plurality of sensors that may be of several different types. Multiple dimension time series data store module 120 may also store any time series data encountered by system 100 such as, but not limited to, environmental factors at insured client infrastructure sites, component sensor readings and system logs of some or all insured client equipment, weather and catastrophic event reports for regions an insured client occupies, political communiques and/or news from regions hosting insured client infrastructure and network service information captures (such as, but not limited to, news, capital funding opportunities and financial feeds, and sales, market condition), and service related customer data. Multiple dimension time series data store module 120 may accommodate irregular and high-volume surges by dynamically allotting network bandwidth and server processing channels to process the incoming data. Inclusion of programming wrappers 120 a for languages—examples of which may include, but are not limited to, C++, PERL, PYTHON, and ERLANG™—allows sophisticated programming logic to be added to default functions of multidimensional time series database 120 without intimate knowledge of the core programming, greatly extending breadth of function. Data retrieved by multidimensional time series database 120 and high-volume web crawling module 115 may be further analyzed and transformed into task-optimized results by directed computational graph 155 and associated general transformer service 160 and decomposable transformer service 150 modules. Alternately, data from the multidimensional time series database and high-volume web crawling modules may be sent, often with scripted cuing information determining important vertices 145 a, to graph stack service module 145 which, employing standardized protocols for converting streams of information into graph representations of that data, for example open graph internet technology (although the invention is not reliant on any one standard). Through the steps, graph stack service module 145 represents data in graphical form influenced by any pre-determined scripted modifications 145 a and stores it in a graph-based data store 145 b such as GIRAPH™ or a key-value pair type data store REDIS™, or RIAK™, among others, any of which are suitable for storing graph-based information.

Results of the transformative analysis process may then be combined with further client directives, additional business rules and practices relevant to the analysis and situational information external to the data already available in automated planning service module 130, which also runs powerful information theory-based predictive statistics functions and machine learning algorithms 130 a to allow future trends and outcomes to be rapidly forecast based upon the current system derived results and choosing each a plurality of possible business decisions. Then, using all or most available data, automated planning service module 130 may propose business decisions most likely to result in favorable business outcomes with a usably high level of certainty. Closely related to the automated planning service module 130 in the use of system-derived results in conjunction with possible externally supplied additional information in the assistance of end user business decision making, action outcome simulation module 125 with a discrete event simulator programming module 125 a coupled with an end user-facing observation and state estimation service 140, which is highly scriptable 140 b as circumstances require and has a game engine 140 a to more realistically stage possible outcomes of business decisions under consideration, allows business decision makers to investigate the probable outcomes of choosing one pending course of action over another based upon analysis of the current available data.

FIG. 2 is a block diagram of an exemplary system 200 for using transfer learning to accommodate data models trained in particular environments or applications that may not have identical feature space or distributions within target data or applications according to various embodiments of the invention. System 200 comprises a distributable model source 201, and a plurality of electronic devices 220[a-n]. Model source 201 may comprise a distributable model 205, a local data store 210, and a synthetic data store 215; while the electronic devices each may have an instanced model 221[a-n], and device data 222[a-n]. Electronic devices 220[a-n] may be any type of computerized hardware commonly used in the art, including, but not limited to, desktop computers, laptops, mobile devices, tablets, and computer clusters. For simplicity, the discussions below regarding system 200 will be from the perspective of a singular device 220 a, which comprises instanced model 221 a and device data 222 a. It should be understood that devices 220[a-n] may operate independently, and in a manner similar to device 220 a.

Model source 201 may be configured to serve an instanced copy of distributable model 205 to device 220 a, and may be any type of computerized hardware used in the art configured to use business operating system 100, and may communicate with connected devices via directed computation graph data pipeline 155 a which may allow incoming and outgoing data to be processed on-the-fly. Distributable model 205 may be a model conventionally used in the art in machine learning, or it may be a specialized model that has been tuned to more efficiently utilize training data that has been distributed amongst various devices while still being able to be trained through traditional machine learning methods. Local data 210 may comprise data that was been previously stored, or data is that in the process of being stored, for example, data that is presently being gathered through monitoring of other systems. Synthetic data 215 may be data that has been intelligently and/or predictively generated to fit the context of a model, and is generally based on real-world trends and events. Examples of synthetic data 215 may include data that has been gathered from running computer simulations; data that has been generated using the predictive simulation functions of business operating system 100 with previously stored data, and current trends; or with the use of other specialized software, such as SNORKEL. Local data 210 and synthetic data 215 may be used by model source 201 as training data for distributable model 205. Although illustrated in FIG. 2 as stored within model source 201, it will be appreciated by one skilled in the art that local data 210 and synthetic data 215 may originate from external systems, and provided to model source 201 through some means such as, for example, the internet or a local area network connection.

In system 200, device 220 a may connect to model source 201 via a network connection, such as through the internet, local area network, virtual private network, or the like, where device 220 a may be provided an instanced copy of the distributable model 221 a. Device 220 a may then cleanse and sanitize its own data 222 a, and train its instanced model 221 a with the cleansed data. A report based on the updates made to instanced model 221 a is generated on device 220 a, and then transmitted back to model source 201. The report may be used by model source 201 to improve distributable model 205. In a preferred embodiment, devices 220[a-n] may comprise systems configured to use business operating system 100, and utilize its directed computation graph capabilities, amongst other functions, to process the data. However, in some embodiments, hardware for the electronic devices may be, for example, a mobile device or computer system running another operating system. These systems may use specialized software configured to process the data according to established compatibility specifications.

A transfer engine 230 may be utilized as needed to facilitate sharing of a model 205 with some destination devices 220 n, for example to adapt model 205 for use in a different environment or for a different purpose than it was initially created. This may be used, for example, to share a data model between departments or organizations that may benefit from one another's data despite variance in hardware or software environments or difference in purpose. Transfer engine 230 may employ a variety of machine learning approaches to provide transfer learning, utilizing machine learning from one problem or set of data and applying it to different (but related) data. For example, machine learning trained on a set of data pertaining to cars may be applicable to data pertaining to other vehicles such as trucks or motorcycles, and transfer learning may be used to enable the application of the car-specific data to broader sets of data and related data types. Transfer learning approaches may include, for example, probabilistic logic such as a Markov logic network (to facilitate inference under uncertainty, as may be used to apply learned techniques to a new data model, or to adapt a data model for a new purpose) or a Bayesian model to model a variety of conditional dependencies as a directed acyclical graph. These approaches, and other approaches that may be possible according to various aspects, may be used to analyze a data set according to the intended purpose for that data set, such as (for example) ensuring that data is compliant with any applicable regulations (such as censoring personally-identifiable information that may be present, for example) or ensuring that the data conforms to any needed specifications to ensure interoperability with an intended destination or use.

Transfer learning may be employed by transfer engine 230 to accommodate environments or applications that may have different features or conform to different standards, so that data sets may be evaluated for their suitability for a particular destination. Analysis may be further enhanced through the use of a plurality of pre-trained models that may be used as a starting point for further refinement during operation, applying machine learning algorithms to the model itself so that it may be modified to accommodate changes in data or destination information, ensuring the analysis remains applicable to the intended purpose as well as the data sets being analyzed. Additionally, pre-trained models may be used to accommodate environments where deep analysis is not desired, such as (for example) in deployments that have limited resources (such as embedded or mobile devices), where a pre-trained model may be used to perform initial analysis of data before exporting it for storage or further analysis using more advanced machine learning capabilities as appropriate. This also provides a mechanism for accommodating environments where localized training may be undesirable, for example in deployments across many mobile devices it may be desirable to ensure consistency of analysis operations without the possibility of each device developing its own localized training model.

Transfer engine 230 may be used to facilitate domain adaptation, learning from one data set (an initial distributable data model 205) and applying this machine learning to new data to create a new data model based on the knowledge gained from the initial training. This may be performed in a partially or fully-unsupervised manner, learning from source data without requiring manual data labeling (as is commonly utilized in traditional approaches). In a partially-unsupervised arrangement, a pre-trained model with some labeled data may be used as a starting point for further training, where unsupervised learning incorporates the labeled information and builds on it to develop a larger model for use. This may be used to incorporate existing labeled data (for example, that may have been created or tagged for other applications) and then applying unsupervised machine learning to expand on it without requiring further manual operation.

System 200 may also be configured to allow certain biases in the data to remain. Biases such as geographical origin of data may be necessary in some cases to adhere to local laws. For example, some countries may have certain laws in place to prevent import and export of data to and from some other restricted countries. By taking into consideration the bias regarding geographical origin of the data, the bias may be used to classify the incoming update reports. The update reports may then be used to train a geographically-restricted distributable model without including data from other restricted countries, while still including data from non-restricted countries.

To provide another example application, crime reports and data distributed across multiple police municipalities may contain information regarding new trends in crime that may be relevant to crime prediction models. However, this data may contain sensitive non-public information that must stay within that particular municipality. With the system described herein, the data may be scrubbed of sensitive information, used to train an instance of the crime prediction model, and the relevant data may be indirectly integrated into the crime prediction model. Since the actual data does not leave the computer system of that particular municipality, this can be done without any concern of sensitive information leaking out.

It should be understood that electronic devices 220[a-n] do not have to all concurrently be connected to model source 201 at the same time, and any number of devices may be actively connected to, and interacting with model source 201 at a given time. Also, improving of a distributable model, improving of an instanced model, and the back and forth communication may not be running continuously, and may be executed only when required. Furthermore, for simplicity, FIG. 2 illustrates only one instance. However, in practice, system 200 may be a segment of a potentially larger system with multiple distributable model sources; or a distributable model source may store and serve a plurality of distributable models. Electronic devices 220[a-n] are not limited to interacting with just one distributable model source, and may connect with, and interact with, as many distributable model sources as is required.

Since biases contained within the data may be contain valuable information, or grant valuable insight when applied to the right models, it may be prudent to utilize this data for specialized models.

FIG. 3 is a block diagram of an exemplary system 300 that may utilize biases contained within data distributed amongst various sectors to improve a bias-specific distributable model according to various embodiments of the invention. System 300 may comprise a distributable model source 301; and a group of sectors 302, which may comprise a plurality of sectors 325[a-h]. Model source 301 may be a system similar to model source 201 including a source of local data 310 and a source of synthetic data 315 that may be used in an identical fashion; however, model source 301 may serve instances of two different models—a generalized distributable model 305, and a bias-specific distributable model 320. Generalized distributable model 305, may be a model that may be trained with data distributed across various sectors in group 302 wherein the biases within the data has been weighted and corrected, which is similar to distributable model 205. Bias-specific distributable model 320 may be a model in which any of the biases contained within the data from each sector 325[a-n] may be carefully considered.

Each of sectors 325[a-h] may be devices with distributed data, similar to electronic devices 220[a-n] from FIG. 2, that has been assigned a classification, for example, devices within a certain region. However, sectors are not limited to being geographically-based. To provide a few non-geographical examples, sectors 325[a-h] may be devices classified by age groups, income classes, interest groups, or the like. Devices within any of sectors 325[a-h] may obtain an instance of the generalized distributable model and the bias-specific model. The devices may then train the instanced models with its own stored data that has been processed in a manner such as the method described below in FIG. 7, and ultimately lead to improvements of the generalized model, and bias-specific model.

It should be understood that, similar to system 200 as shown in FIG. 2, the embodiment shown in system 300 shows one possible arrangement of a distributable model source and data sources and chosen for simplicity. In other embodiments, there may be, for example, more or less sectors in a group, there may be several groups of sectors, or there may be multiple models, both generalized and bias-specific. See the discussion for FIG. 4 below for an example that has multiple tiers, with each tier having its own group of sectors.

FIG. 4 is a block diagram of an exemplary hierarchy 400 in which each level may have its own set of distributable models according to various embodiments of the invention. At the highest level of hierarchy 400, there is a global level 405 which may encompass all lower levels of hierarchy 400. Directly beneath global-level 405 may be a plurality of continent-level 410 sectors, which may, in turn, encompass all the levels beneath it. Continuing with the pattern, directly beneath the continent level may be a plurality of country-level 415 sectors, which may have a plurality of state-level or province-level 420 sectors, which leads to county-level 425 sectors, then city-level 430 sectors, and then to neighborhood-level 435 sectors. Each level of sectors may have a system as described in FIG. 3, and have a distributable model specifically for utilizing biases gleaned from data from within the sector distribution on each level, as well as a generalized distributable model with biases weighted and corrected to some extent. Models may also be shared between levels if, for instance, a particular model on one level is applicable to another level. Models and data gathered within a level may not be limited to being used in adjacent levels, for example, data gathered at the county level may also be relevant, with biases weighted and corrected, to global-level models, as well as neighborhood-level models.

For example, a global company may have office of operations spread across the globe. This company may have a global office that manages offices in a subgroup of business regions, for example business regions commonly used such as APAC, America, LATAM, SEA, and the like. These business regions may each have a regional office that manages its own subgroup of countries within these regions. These counties may each have a national office that manages its own subgroup of states/provinces/territories. There may be deeper, more granular subgroups, as shown in FIG. 4, but for the purposes of this example, the deepest level used will be states/provinces/territories.

The global office may have a system configured to use business operating system 100, and may serve two distributable models: a generalized distributable model configured to analyze cleansed data from the distributed business regions on a global scale, and also a bias-specific distributable model that utilizes the biases in the data distributed amongst the business regions. An example of a global model may be a model that predicts effects on the environment or global climate, while a business region-specific model may be a model that predicts business earnings based on regional data, such as, the economy of each region, developing trends in each region, or population of each region. At the next level down, a regional office may serve distributable models to countries within that region: a distributed model for bias-corrected region-wide distributed data, and a distributable bias-based model that utilizes biases within country-level distributed data. The models may be similar to the models served by the global office, but may be more regional and country-centric, for example, regional environment and climate, and country-level business forecasts, respectively. At the next level, and final level for this example, a national office may serve distributable models to states/provinces/territories within that country, similar to the example models in the global and regional levels. The data distributed at the state level may be gathered and used to train these models. It should be noted that the distribution of model is compartmentalized at each level to simplify the example, and does not represent any limitation of the present invention. In other embodiments, for example, a single system in any of the levels may serve all the various models to every level of the hierarchy, or there may be servers outside out of the systems of the global company used in this example that may serve the model.

Detailed Description of Exemplary Aspects

FIG. 5 is a flowchart illustrating a method 500 for cleaning and sanitizing data stored on an electronic device before training an instance of a distributable model according to various embodiments of the invention. At an initial step 505, biases found within the data are identified, and corrected so that the data may be more conducive for usage in a generalized distributable model. Biases may include, but is not limited to, local or regional trends, language or racial trends, and gender trends. The biases are intelligently weighted to provide useful insight without overfitting the data sets. In some embodiments, the bias data may be specially identified and stored to be used on other, more regionalized distributable models. At step 510, in order to maintain privacy of users and systems, the data may be scrubbed of personally identifiable information, and other sensitive information. This information may include banking information, medical history, addresses, personal history, and the like. At step 515, the data, now cleansed and sanitized, may be labeled to be used as training data. At step 520, the data is now appropriately formatted to be used for training an instanced model.

It should be noted that method 500 outlines one method for cleaning and sanitizing data. In other embodiments, some of the steps in method 500 may be skipped, or other steps may be added. Besides being used for training an instanced model, and ultimately improving a distributable model, the data may be processed in a similar fashion to become more generalized and appropriate for transfer for usage in training models belonging to different domains. This allows data that has been previously gathered to be re-used in new models, without the sometimes arduous of regathering data that is specially formatted for the context of a specific domain of the newly created model.

FIG. 6 is a flowchart illustrating a method 600 for improving a distributable model on a device external from the source of the model according to various embodiments of the invention. At an initial step 605, an instance of the distributable model is shared with a device from the distributable model source. At step 610, the data on the device is cleansed and sanitized, one such method is outlined in FIG. 5. At step 615, the data, now in a format suitable for use in training a general-use distributable model, may be used to train the shared model (that is, the shared instance of a distributable model) on the device. At step 620, a report based on updates to the shared model may be generated, and transferred to the distributable model source. One benefit of generating and transferring a report, as opposed to transferring of the data itself, is that it may be a more efficient approach than transferring all data required to improve a distributable model. Also, since the raw data does not need to leave the device, this method may help further ensure sensitive information is not leaked. At step 625, the report is used by the distributable model source to improve the distributable model.

FIG. 7 is a flowchart illustrating a method 700 for improving a bias-specific and generalized distributable model with data on distributed devices according to various embodiments of the invention. At an initial step 705, a device obtains instances of distributable models from a model source: a generalized distributable model, and a bias-specific distributable model. At step 710, a first dataset is created with data stored on the device that has had biases within the data intelligently identified and processed by business operating system 100 for use with a bias-specific model. At step 715, a second dataset is created with the data stored on the device with biases within the data intelligently weighted and corrected, so that the dataset may be more appropriate for a generalized model. At step 720, the datasets are cleansed and scrubbed of sensitive information. At step 725, the first and second datasets are used to train the instance of their respective models; the first dataset trains the instance of the bias-specific model, and the second dataset trains the instance of the generalized model. At step 730, reports are generated based on updates made to the instances of each model. Following the generation of the reports, the steps are similar to the last steps of method 600, specifically steps 620 and 625. The generated reports are transferred to the model source, and they are each used to improve their respective models.

FIG. 8 is a flowchart illustrating a method 800 for using transfer learning to accommodate data models trained in particular environments or applications that may not have identical feature space or distributions within target data or applications. In an initial step 801, a first dataset may be created from stored data, optionally with biases identified or removed according to one or more of the aspects described previously (referring to FIGS. 4-7). In a next step 802, a destination for the dataset (for example, an external application or service for which the data is intended, or another environment or department with which the data is being shared) may be analyzed to identify any requirements for the dataset, such as (for example) regulatory, content, or format restrictions with which the data should comply. In a next step 803, a variety of transfer learning algorithms may be applied to the first dataset, using machine learning to process the data and determine its suitability 804 for the destination as well as identifying areas where the data must be adapted to meet the requirements. A number of transfer learning approaches may be utilized according to a particular arrangement, for example using probabilistic learning models such as Bayesian or Markov networks to appropriately handle the data transfer in view of any uncertainty that may be present. In a next step 805, a second dataset may be created using the results of the transfer learning process, producing a derived set of data comprising suitable and adapted data from the first dataset, such that the second dataset is fully compatible with the destination. In a final step 806, the second dataset may be provided to the data destination for use.

FIG. 9 is a flowchart illustrating a method 900 for using a pre-trained model in transfer learning, to provide a starting point for additional model training. In an initial step 901, a first dataset may be created from stored data, optionally with biases identified or removed according to one or more of the aspects described previously (referring to FIGS. 4-7). In a next step 902, a destination for the dataset (for example, an external application or service for which the data is intended, or another environment or department with which the data is being shared) may be analyzed to identify any requirements for the dataset, such as (for example) regulatory, content, or format restrictions with which the data should comply. In a next step 903, a pre-trained model comprising labeled data may be loaded, providing an initial model to be used as a starting point for unsupervised learning based on a portion of previously-labeled data (as opposed to a traditional, fully-supervised approach wherein all data must be manually labeled for machine learning to operate). In a next step 904, unsupervised machine learning may then process the first dataset according to the labeled data in the pre-trained model, building from the labeled data to develop a second data model 905 for transfer and domain adaptation.

Hardware Architecture

Generally, the techniques disclosed herein may be implemented on hardware or a combination of software and hardware. For example, they may be implemented in an operating system kernel, in a separate user process, in a library package bound into network applications, on a specially constructed machine, on an application-specific integrated circuit (ASIC), or on a network interface card.

Software/hardware hybrid implementations of at least some of the aspects disclosed herein may be implemented on a programmable network-resident machine (which should be understood to include intermittently connected network-aware machines) selectively activated or reconfigured by a computer program stored in memory. Such network devices may have multiple network interfaces that may be configured or designed to utilize different types of network communication protocols. A general architecture for some of these machines may be described herein in order to illustrate one or more exemplary means by which a given unit of functionality may be implemented. According to specific aspects, at least some of the features or functionalities of the various aspects disclosed herein may be implemented on one or more general-purpose computers associated with one or more networks, such as for example an end-user computer system, a client computer, a network server or other server system, a mobile computing device (e.g., tablet computing device, mobile phone, smartphone, laptop, or other appropriate computing device), a consumer electronic device, a music player, or any other suitable electronic device, router, switch, or other suitable device, or any combination thereof. In at least some aspects, at least some of the features or functionalities of the various aspects disclosed herein may be implemented in one or more virtualized computing environments (e.g., network computing clouds, virtual machines hosted on one or more physical computing machines, or other appropriate virtual environments).

Referring now to FIG. 10, there is shown a block diagram depicting an exemplary computing device 10 suitable for implementing at least a portion of the features or functionalities disclosed herein. Computing device 10 may be, for example, any one of the computing machines listed in the previous paragraph, or indeed any other electronic device capable of executing software-or hardware-based instructions according to one or more programs stored in memory. Computing device 10 may be configured to communicate with a plurality of other computing devices, such as clients or servers, over communications networks such as a wide area network a metropolitan area network, a local area network, a wireless network, the Internet, or any other network, using known protocols for such communication, whether wireless or wired.

In one aspect, computing device 10 includes one or more central processing units (CPU) 12, one or more interfaces 15, and one or more busses 14 (such as a peripheral component interconnect (PCI) bus). When acting under the control of appropriate software or firmware, CPU 12 may be responsible for implementing specific functions associated with the functions of a specifically configured computing device or machine. For example, in at least one aspect, a computing device 10 may be configured or designed to function as a server system utilizing CPU 12, local memory 11 and/or remote memory 16, and interface(s) 15. In at least one aspect, CPU 12 may be caused to perform one or more of the different types of functions and/or operations under the control of software modules or components, which for example, may include an operating system and any appropriate applications software, drivers, and the like.

CPU 12 may include one or more processors 13 such as, for example, a processor from one of the Intel, ARM, Qualcomm, and AMD families of microprocessors. In some aspects, processors 13 may include specially designed hardware such as application-specific integrated circuits (ASICs), electrically erasable programmable read-only memories (EEPROMs), field-programmable gate arrays (FPGAs), and so forth, for controlling operations of computing device 10. In a particular aspect, a local memory 11 (such as non-volatile random access memory (RAM) and/or read-only memory (ROM), including for example one or more levels of cached memory) may also form part of CPU 12. However, there are many different ways in which memory may be coupled to system 10. Memory 11 may be used for a variety of purposes such as, for example, caching and/or storing data, programming instructions, and the like. It should be further appreciated that CPU 12 may be one of a variety of system-on-a-chip (SOC) type hardware that may include additional hardware such as memory or graphics processing chips, such as a QUALCOMM SNAPDRAGON™ or SAMSUNG EXYNOS™ CPU as are becoming increasingly common in the art, such as for use in mobile devices or integrated devices.

As used herein, the term “processor” is not limited merely to those integrated circuits referred to in the art as a processor, a mobile processor, or a microprocessor, but broadly refers to a microcontroller, a microcomputer, a programmable logic controller, an application-specific integrated circuit, and any other programmable circuit.

In one aspect, interfaces 15 are provided as network interface cards (NICs). Generally, NICs control the sending and receiving of data packets over a computer network; other types of interfaces 15 may for example support other peripherals used with computing device 10. Among the interfaces that may be provided are Ethernet interfaces, frame relay interfaces, cable interfaces, DSL interfaces, token ring interfaces, graphics interfaces, and the like. In addition, various types of interfaces may be provided such as, for example, universal serial bus (USB), Serial, Ethernet, FIREWIRE™, THUNDERBOLT™, PCI, parallel, radio frequency (RF), BLUETOOTH™, near-field communications (e.g., using near-field magnetics), 802.11 (WiFi), frame relay, TCP/IP, ISDN, fast Ethernet interfaces, Gigabit Ethernet interfaces, Serial ATA (SATA) or external SATA (ESATA) interfaces, high-definition multimedia interface (HDMI), digital visual interface (DVI), analog or digital audio interfaces, asynchronous transfer mode (ATM) interfaces, high-speed serial interface (HSSI) interfaces, Point of Sale (POS) interfaces, fiber data distributed interfaces (FDDIs), and the like. Generally, such interfaces 15 may include physical ports appropriate for communication with appropriate media. In some cases, they may also include an independent processor (such as a dedicated audio or video processor, as is common in the art for high-fidelity A/V hardware interfaces) and, in some instances, volatile and/or non-volatile memory (e.g., RAM).

Although the system shown in FIG. 10 illustrates one specific architecture for a computing device 10 for implementing one or more of the aspects described herein, it is by no means the only device architecture on which at least a portion of the features and techniques described herein may be implemented. For example, architectures having one or any number of processors 13 may be used, and such processors 13 may be present in a single device or distributed among any number of devices. In one aspect, a single processor 13 handles communications as well as routing computations, while in other aspects a separate dedicated communications processor may be provided. In various aspects, different types of features or functionalities may be implemented in a system according to the aspect that includes a client device (such as a tablet device or smartphone running client software) and server systems (such as a server system described in more detail below).

Regardless of network device configuration, the system of an aspect may employ one or more memories or memory modules (such as, for example, remote memory block 16 and local memory 11) configured to store data, program instructions for the general-purpose network operations, or other information relating to the functionality of the aspects described herein (or any combinations of the above). Program instructions may control execution of or comprise an operating system and/or one or more applications, for example. Memory 16 or memories 11, 16 may also be configured to store data structures, configuration data, encryption data, historical system operations information, or any other specific or generic non-program information described herein.

Because such information and program instructions may be employed to implement one or more systems or methods described herein, at least some network device aspects may include nontransitory machine-readable storage media, which, for example, may be configured or designed to store program instructions, state information, and the like for performing various operations described herein. Examples of such nontransitory machine-readable storage media include, but are not limited to, magnetic media such as hard disks, floppy disks, and magnetic tape; optical media such as CD-ROM disks; magneto-optical media such as optical disks, and hardware devices that are specially configured to store and perform program instructions, such as read-only memory devices (ROM), flash memory (as is common in mobile devices and integrated systems), solid state drives (SSD) and “hybrid SSD” storage drives that may combine physical components of solid state and hard disk drives in a single hardware device (as are becoming increasingly common in the art with regard to personal computers), memristor memory, random access memory (RAM), and the like. It should be appreciated that such storage means may be integral and non-removable (such as RAM hardware modules that may be soldered onto a motherboard or otherwise integrated into an electronic device), or they may be removable such as swappable flash memory modules (such as “thumb drives” or other removable media designed for rapidly exchanging physical storage devices), “hot-swappable” hard disk drives or solid state drives, removable optical storage discs, or other such removable media, and that such integral and removable storage media may be utilized interchangeably. Examples of program instructions include both object code, such as may be produced by a compiler, machine code, such as may be produced by an assembler or a linker, byte code, such as may be generated by for example a JAVA™ compiler and may be executed using a Java virtual machine or equivalent, or files containing higher level code that may be executed by the computer using an interpreter (for example, scripts written in Python, Perl, Ruby, Groovy, or any other scripting language).

In some aspects, systems may be implemented on a standalone computing system. Referring now to FIG. 11, there is shown a block diagram depicting a typical exemplary architecture of one or more aspects or components thereof on a standalone computing system. Computing device 20 includes processors 21 that may run software that carry out one or more functions or applications of aspects, such as for example a client application 24. Processors 21 may carry out computing instructions under control of an operating system 22 such as, for example, a version of MICROSOFT WINDOWS™ operating system, APPLE macOS™ or iOS™ operating systems, some variety of the Linux operating system, ANDROID™ operating system, or the like. In many cases, one or more shared services 23 may be operable in system 20, and may be useful for providing common services to client applications 24. Services 23 may for example be WINDOWS™ services, user-space common services in a Linux environment, or any other type of common service architecture used with operating system 21. Input devices 28 may be of any type suitable for receiving user input, including for example a keyboard, touchscreen, microphone (for example, for voice input), mouse, touchpad, trackball, or any combination thereof. Output devices 27 may be of any type suitable for providing output to one or more users, whether remote or local to system 20, and may include for example one or more screens for visual output, speakers, printers, or any combination thereof. Memory 25 may be random-access memory having any structure and architecture known in the art, for use by processors 21, for example to run software. Storage devices 26 may be any magnetic, optical, mechanical, memristor, or electrical storage device for storage of data in digital form (such as those described above, referring to FIG. 10). Examples of storage devices 26 include flash memory, magnetic hard drive, CD-ROM, and/or the like.

In some aspects, systems may be implemented on a distributed computing network, such as one having any number of clients and/or servers. Referring now to FIG. 12, there is shown a block diagram depicting an exemplary architecture 30 for implementing at least a portion of a system according to one aspect on a distributed computing network. According to the aspect, any number of clients 33 may be provided. Each client 33 may run software for implementing client-side portions of a system; clients may comprise a system 20 such as that illustrated in FIG. 11. In addition, any number of servers 32 may be provided for handling requests received from one or more clients 33. Clients 33 and servers 32 may communicate with one another via one or more electronic networks 31, which may be in various aspects any of the Internet, a wide area network, a mobile telephony network (such as CDMA or GSM cellular networks), a wireless network (such as WiFi, WiMAX, LTE, and so forth), or a local area network (or indeed any network topology known in the art; the aspect does not prefer any one network topology over any other). Networks 31 may be implemented using any known network protocols, including for example wired and/or wireless protocols.

In addition, in some aspects, servers 32 may call external services 37 when needed to obtain additional information, or to refer to additional data concerning a particular call. Communications with external services 37 may take place, for example, via one or more networks 31. In various aspects, external services 37 may comprise web-enabled services or functionality related to or installed on the hardware device itself. For example, in one aspect where client applications 24 are implemented on a smartphone or other electronic device, client applications 24 may obtain information stored in a server system 32 in the cloud or on an external service 37 deployed on one or more of a particular enterprise's or user's premises.

In some aspects, clients 33 or servers 32 (or both) may make use of one or more specialized services or appliances that may be deployed locally or remotely across one or more networks 31. For example, one or more databases 34 may be used or referred to by one or more aspects. It should be understood by one having ordinary skill in the art that databases 34 may be arranged in a wide variety of architectures and using a wide variety of data access and manipulation means. For example, in various aspects one or more databases 34 may comprise a relational database system using a structured query language (SQL), while others may comprise an alternative data storage technology such as those referred to in the art as “NoSQL” (for example, HADOOP CASSANDRA™, GOOGLE BIGTABLE™, and so forth). In some aspects, variant database architectures such as column-oriented databases, in-memory databases, clustered databases, distributed databases, or even flat file data repositories may be used according to the aspect. It will be appreciated by one having ordinary skill in the art that any combination of known or future database technologies may be used as appropriate, unless a specific database technology or a specific arrangement of components is specified for a particular aspect described herein. Moreover, it should be appreciated that the term “database” as used herein may refer to a physical database machine, a cluster of machines acting as a single database system, or a logical database within an overall database management system. Unless a specific meaning is specified for a given use of the term “database”, it should be construed to mean any of these senses of the word, all of which are understood as a plain meaning of the term “database” by those having ordinary skill in the art.

Similarly, some aspects may make use of one or more security systems 36 and configuration systems 35. Security and configuration management are common information technology (IT) and web functions, and some amount of each are generally associated with any IT or web systems. It should be understood by one having ordinary skill in the art that any configuration or security subsystems known in the art now or in the future may be used in conjunction with aspects without limitation, unless a specific security 36 or configuration system 35 or approach is specifically required by the description of any specific aspect.

FIG. 13 shows an exemplary overview of a computer system 40 as may be used in any of the various locations throughout the system. It is exemplary of any computer that may execute code to process data. Various modifications and changes may be made to computer system 40 without departing from the broader scope of the system and method disclosed herein. Central processor unit (CPU) 41 is connected to bus 42, to which bus is also connected memory 43, nonvolatile memory 44, display 47, input/output (I/O) unit 48, and network interface card (NIC) 53. I/O unit 48 may, typically, be connected to keyboard 49, pointing device 50, hard disk 52, and real-time clock 51. NIC 53 connects to network 54, which may be the Internet or a local network, which local network may or may not have connections to the Internet. Also shown as part of system 40 is power supply unit 45 connected, in this example, to a main alternating current (AC) supply 46. Not shown are batteries that could be present, and many other devices and modifications that are well known but are not applicable to the specific novel functions of the current system and method disclosed herein. It should be appreciated that some or all components illustrated may be combined, such as in various integrated applications, for example Qualcomm or Samsung system-on-a-chip (SOC) devices, or whenever it may be appropriate to combine multiple capabilities or functions into a single hardware device (for instance, in mobile devices such as smartphones, video game consoles, in-vehicle computer systems such as navigation or multimedia systems in automobiles, or other integrated hardware devices).

In various aspects, functionality for implementing systems or methods of various aspects may be distributed among any number of client and/or server components. For example, various software modules may be implemented for performing various functions in connection with the system of any particular aspect, and such modules may be variously implemented to run on server and/or client components.

The skilled person will be aware of a range of possible modifications of the various aspects described above. Accordingly, the present invention is defined by the claims and their equivalents. 

What is claimed is:
 1. A system for transfer learning and domain adaptation using distributable data models, comprising: a distributable model source comprising a memory, a processor, and a plurality of programming instructions stored in the memory thereof and operable on the processor thereof, wherein the programmable instructions, when operating on the processor, cause the processor to: store a plurality of machine learning models; produce a distributable model instance based at least in part on a machine learning model; transmit the distributable model instance via a network; a transfer engine comprising a memory, a processor, and a plurality of programming instructions stored in the memory thereof and operable on the processor thereof, wherein the programmable instructions, when operating on the processor, cause the processor to: receive at least a distributable model instance from the model source; apply a plurality of machine learning algorithms to at least a portion of the received instance of the distributable model; receive a pre-trained data model; incorporate at least a portion of the pre-trained data model into a partially-unsupervised machine learning process; and apply the partially-unsupervised machine learning process to the distributable model instance; and a directed computational graph engine comprising a memory, a processor, and a plurality of programming instructions stored in the memory thereof and operable on the processor thereof, wherein the programmable instructions, when operating on the processor, cause the processor to: receive at least a distributable model instance from the model source; create a second dataset from data stored in the memory based at least in part on transfer learning performed by the transfer engine; train the distributable model instance with the second dataset; and generate an update report based at least in part by updates to the distributable model instance.
 2. The system of claim 1, wherein a machine learning algorithm comprises a probabilistic learning network.
 3. The system of claim 2, wherein the probabilistic learning network comprises a Markov logic network.
 4. The system of claim 2, wherein the probabilistic learning network comprises a Bayesian network.
 5. A method for transfer learning and domain adaptation using distributable data models, comprising the steps of: (a) storing, in a distributable model source, a plurality of machine learning models; (b) producing a distributable model instance based at least in part on a machine learning model; (c) transmitting the distributable model instance via a network; (d) receiving, at a transfer engine, at least a distributable model instance from the distributable model source; (e) applying a plurality of machine learning algorithms to the distributable model instance; (f) using a directed computational graph engine to train the distributable model instance with the plurality of machine learning algorithms performed by the transfer engine; (g) receiving a pre-trained data model; (h) incorporating at least a portion of the pre-trained data model into a partially-unsupervised machine learning process; (i) applying the partially-unsupervised machine learning process to the distributable model instance; and (j) generating an update report based at least in part by updates to the distributable model instance.
 6. The method of claim 5, wherein a machine learning algorithm comprises a probabilistic learning network.
 7. The method of claim 6, wherein the probabilistic learning network comprises a Markov logic network.
 8. The method of claim 6, wherein the probabilistic learning network comprises a Bayesian network. 